<{include file="db:`$mydirname`_mobile_header.html"}>


<{if count($categories) gt 0}>
  <{foreach item=category from=$categories name=ii key=counter}>
    <div>
      <{if $category.image != ""}>
        <a href="<{my_make_uri option=$uri_options mydirname=$mydirname controller=$c_tree_controller method=$c_tree_method p_key1=cid p_val1=$category.id}>"><img src="<{$xoops_url}>/<{$catimgpath}>/<{$category.image}>" border="0" style="vertical-align:text-top;" /></a>
      <{/if}>
      <a href="<{my_make_uri option=$uri_options mydirname=$mydirname controller=$c_tree_controller method=$c_tree_method p_key1=cid p_val1=$category.id}>"><{$category.title}></a>&nbsp;(<{$category.totallink}>)
      <{if $category.subcategories}>&nbsp;+<{/if}>
    </div>
  <{/foreach}>

  <hr />
<{/if}>


<div style="font-size:1.2em;"><b><{$ranking_title}></b></div>


<table style="margin:20px 0;background:#999;">
  <tr>
    <td><{$smarty.const._MD_RANK}></td>
    <td width="40%"><{$smarty.const._MD_SITETITLE}></td>
    <td><{$smarty.const._MD_ACCS}></td>
    <td><{$smarty.const._MD_HITS}></td>
    <td><{$smarty.const._MD_RATING}></td>
    <td><{$smarty.const._MD_VOTE}></td>
  </tr>

  <{* <!-- Start links loop --> *}>
  <{foreach item=link from=$links key=count }>
    <tr style="background:<{cycle values='#fff,#eee'}>;">
      <td align='center'><{$count+1}></td>
      <td>
        <a href="<{my_make_uri option=$uri_options mydirname=$mydirname method=item p_key1=lid p_val1=$link.lid}>">
          <{$link.title|links_substr:0:12}>
        </a>
      </td>
      <td align='center'><{$link.access}></td>
      <td align='center'><{$link.hits}></td>
      <td align='center'><{$link.rating}></td>
      <td align='center'><{$link.votes_num}></td>
    </tr>
  <{/foreach}>
  <{* <!-- End links loop--> *}>

</table>


<{include file="db:`$mydirname`_mobile_footer.html"}>
